package com.zj.fx.model.month;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

@Data
public class MonthAuditDtl implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "任务ID")
    private String fkTaskId;

    @ApiModelProperty(value = "部门ID")
    private String deptId;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "任务状态（0未审核完成1审核完成）")
    private String taskState;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "审核时间")
    private Date auditDate;

    @ApiModelProperty(value = "供电所ID")
    private String supplyId;

    @ApiModelProperty(value = "供电所名称")
    private String supplyName;

    @ApiModelProperty(value = "任务年月")
    private String taskMonth;

    @ApiModelProperty(value = "拓展字段--营销审核状态")
    private String yingxiaoState;

    @ApiModelProperty(value = "拓展字段--运检审核状态")
    private String yunjianState;

    @ApiModelProperty(value = "拓展字段--安监审核状态")
    private String anjianState;

    @ApiModelProperty(value = "拓展字段--党建审核状态")
    private String dangjianState;

    @ApiModelProperty(value = "拓展字段--纪委审核状态")
    private String jiweiState;

    @ApiModelProperty(value = "拓展字段--人资审核状态")
    private String renziState;

    @ApiModelProperty(value = "拓展字段--互联网办审核状态")
    private String hulianwangState;

    @ApiModelProperty(value = "拓展字段--发展部审核状态")
    private String fazhanState;

    @ApiModelProperty(value = "拓展字段--后勤部审核状态")
    private String houqinState;

    @ApiModelProperty(value = "拓展字段--工会审核状态")
    private String gonghuiState;

    @ApiModelProperty(value = "拓展字段--信通公司审核状态")
    private String xintongState;

    @ApiModelProperty(value = "拓展字段--办公室审核状态")
    private String bangongshiState;

    public MonthAuditDtl(String id, String fkTaskId, String deptId, String deptName, String taskState, Date auditDate, String supplyId, String supplyName, String taskMonth) {

        this.id = id;

        this.fkTaskId = fkTaskId;

        this.deptId = deptId;

        this.deptName = deptName;

        this.taskState = taskState;

        this.auditDate = auditDate;

        this.supplyId = supplyId;

        this.supplyName = supplyName;

        this.taskMonth = taskMonth;

    }

    public MonthAuditDtl() {
        super();
    }

    public String dateToStringConvert(Date date) {
        if (date != null) {
            return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
        }
        return "";
    }


}